package gttp.nspa.client.adm.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;

public class CustomerListPlace extends Place {

    public static class Tokenizer implements PlaceTokenizer<CustomerListPlace> {

        public CustomerListPlace getPlace(String token) {
            boolean reload = token.equals("reload");
            return new CustomerListPlace(reload);
        }

        public String getToken(CustomerListPlace place) {
            return place.reload ? "reload" : "";
        }

    }

    public final boolean reload;

    public CustomerListPlace(boolean reload) {
        this.reload = reload;
    }
}
